<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="stripes"
	uri="http://stripes.sourceforge.net/stripes.tld"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>文件上传</title>
		<link href="/j2eeshop/css/j2eeshop.css" rel="stylesheet"
			type="text/css" />
			
<script type="text/javascript">
			
			
			function validFile()
			{
			
				if(document.getElementById("uploadFile").value=="")
				{
				
					alert("温馨提示：未选择文件");
					return false;
				
				}else
				{
				
					return true;
				
				}
				
			
			
			}
			
			
</script>

	</head>
	<body>
		<%@ include file="../../inc/head.inc"%>
		<div id="ctop">
			<h1>
				Welcome use j2eeshop upload
			</h1>
		</div>
		<div id="ccenter">
			<stripes:form method="post"
				beanclass="com.andy.stripes.actions.FileUploadActionBean" onsubmit="  return validFile()">

				<stripes:file name="uploadFile"   class="file" id="uploadFile" />			
				<stripes:submit value="上传" name="fileUpload" class="btn" ></stripes:submit>


			</stripes:form>
			
		</div>

		<%@ include file="../../inc/foot.inc"%>
	</body>
</html>
